diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2012-11-12 20:06:06 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2012-11-12 20:06:06 +0100 |
commit | dd878293d4d7c810a004627883ab8f78c4fefb81 (patch) | |
tree | 59e369861b3e762a899856ee4cc55c54d7eff702 | |
parent | 3c194b59b52860ee1a162867d245d9593ea9575f (diff) | |
download | Chimère - projet Saclay-dd878293d4d7c810a004627883ab8f78c4fefb81.tar.bz2 Chimère - projet Saclay-dd878293d4d7c810a004627883ab8f78c4fefb81.zip |
HTML validation javascript escape
-rw-r--r-- | templates/chimere/blocks/alternate_multimedia.html | 2 | ||||
-rw-r--r-- | templates/chimere/blocks/map.html | 4 | ||||
-rw-r--r-- | templates/chimere/blocks/news.html | 2 | ||||
-rw-r--r-- | templates/chimere/blocks/routing.html | 2 | ||||
-rw-r--r-- | templates/chimere/blocks/share_bar.html | 2 | ||||
-rw-r--r-- | templates/chimere/blocks/submited.html | 2 | ||||
-rw-r--r-- | templates/chimere/blocks/welcome.html | 4 | ||||
-rw-r--r-- | templates/chimere/detail.html | 3 | ||||
-rw-r--r-- | templates/chimere/edit.html | 4 | ||||
-rw-r--r-- | templates/chimere/main_map.html | 4 |
10 files changed, 28 insertions, 1 deletions
diff --git a/templates/chimere/blocks/alternate_multimedia.html b/templates/chimere/blocks/alternate_multimedia.html index 7a3eaa4..ddfa0ad 100644 --- a/templates/chimere/blocks/alternate_multimedia.html +++ b/templates/chimere/blocks/alternate_multimedia.html @@ -50,6 +50,7 @@ <span id='add_media'>{% trans 'Add'%}</span> </div> <script text='text/javascript'> + <!-- $(function(){ $(".remove-media").click(function(){ $(this).parents('li').remove(); @@ -146,5 +147,6 @@ return false; }); }); + // --> </script> diff --git a/templates/chimere/blocks/map.html b/templates/chimere/blocks/map.html index 9092d56..14475e3 100644 --- a/templates/chimere/blocks/map.html +++ b/templates/chimere/blocks/map.html @@ -1,7 +1,9 @@ {% load i18n %} <div id='{{map_id}}'></div> <script type="text/javascript"> + <!-- $("#{{map_id}}").show(); + // --> </script> <div id="waiting"> <div id="waiting-content"> @@ -16,6 +18,7 @@ </ul> </div> <script type="text/javascript"> + <!-- var routing_panel_open = function(){ $('#frm_categories').hide(); $('#chimere_itinerary_panel').show(); @@ -167,5 +170,6 @@ } }); }); + // --> </script> <div id='marker_hover'><div id='marker_hover_content'></div></div> diff --git a/templates/chimere/blocks/news.html b/templates/chimere/blocks/news.html index e63e22f..84dfe04 100644 --- a/templates/chimere/blocks/news.html +++ b/templates/chimere/blocks/news.html @@ -1,6 +1,7 @@ {% load i18n sanitize chimere_tags %} {% if news_lst %} <script type='text/javascript'> +<!-- $(function(){ $('#news div.media-player').jmeEmbedControls(); $('#news video').each(function(index){$(this).pause()}); @@ -8,6 +9,7 @@ $(function(){ $("#news").dialog({width:630, dialogClass:'no-titlebar', autoOpen:false}); }); +// --> </script> <div id='news' style='display:none'> <h2>{% trans "News" %}</h2> diff --git a/templates/chimere/blocks/routing.html b/templates/chimere/blocks/routing.html index bd00ffc..2759252 100644 --- a/templates/chimere/blocks/routing.html +++ b/templates/chimere/blocks/routing.html @@ -79,6 +79,8 @@ Nos informations sont actualisées aussi souvent que possible, mais nous ne pouv </div> </div> <script language='javascript' type='text/javascript'> +<!-- step_label = "{% trans "Step" %}"; +// --> </script> {% endif%} diff --git a/templates/chimere/blocks/share_bar.html b/templates/chimere/blocks/share_bar.html index 1932a4a..0921673 100644 --- a/templates/chimere/blocks/share_bar.html +++ b/templates/chimere/blocks/share_bar.html @@ -11,9 +11,11 @@ <li class='shared' style='display:none'><a href='{% url chimere:feeds-global %}'><img src='{{STATIC_URL}}chimere/img/feed.png' alt='Feeds'/></a></li>{%endif%} </ul>{% endif %} <script type='text/javascript'> + <!-- $(function(){ share_link_update(); }); + // --> </script> {% endif %} diff --git a/templates/chimere/blocks/submited.html b/templates/chimere/blocks/submited.html index c4dfb6c..6553957 100644 --- a/templates/chimere/blocks/submited.html +++ b/templates/chimere/blocks/submited.html @@ -6,6 +6,7 @@ <p>N’hésitez pas à nous contacter pour toute question : contact[à]saclay.carte-ouverte.org</p> </div> <script type='text/javascript'> + <!-- $(function(){ $("#submited-window").dialog({ modal: true, @@ -17,4 +18,5 @@ } }); }); + // --> </script> diff --git a/templates/chimere/blocks/welcome.html b/templates/chimere/blocks/welcome.html index ffd8e09..a2729b9 100644 --- a/templates/chimere/blocks/welcome.html +++ b/templates/chimere/blocks/welcome.html @@ -1,12 +1,14 @@ {% load i18n sanitize chimere_tags %} {% if news_lst or welcome_message %} <script type='text/javascript'> +<!-- $(function(){ $('#welcome div.media-player').jmeEmbedControls(); $('#welcome video').each(function(index){$(this).pause()}); $('#welcome audio').each(function(index){$(this).pause()}); $("#welcome").dialog({width:826, height:490, dialogClass:'welcome-dialog'}); }); +// --> </script> <div id='welcome' style='display:none'> <div class='title'> @@ -52,6 +54,7 @@ $(function(){ </div> </div> <script type='text/javascript'> +<!-- $(function(){ $('.get_more_information').click(function(){ $('#welcome').dialog('close'); @@ -59,5 +62,6 @@ $(function(){ return false; }); }); +// --> </script> {% endif %} diff --git a/templates/chimere/detail.html b/templates/chimere/detail.html index 4c284eb..c101d9e 100644 --- a/templates/chimere/detail.html +++ b/templates/chimere/detail.html @@ -67,6 +67,7 @@ </div> {% endif %} <script language='javascript' type='text/javascript'> +<!-- $('html').addClass('js-on'); $(function(){ $("#gallery-{{marker.pk}}").dialog({title:"{{marker.name}}", autoOpen: false, @@ -110,5 +111,5 @@ $('#show_gallery_link').click(function(){ $("#gallery-{{marker.pk}}").dialog('open'); return false; }); - +// --> </script> diff --git a/templates/chimere/edit.html b/templates/chimere/edit.html index 058d263..2416cde 100644 --- a/templates/chimere/edit.html +++ b/templates/chimere/edit.html @@ -69,6 +69,7 @@ Les évènements à caractère politique, confessionnel ainsi que ceux relevant {% if filtered_properties %} <script type='text/javascript'> + <!-- var cat_filters = new Array(); var cat_to_hide = new Array(); {% for property in filtered_properties %} @@ -91,6 +92,7 @@ Les évènements à caractère politique, confessionnel ainsi que ceux relevant } }); $('#id_categories').change(); + // --> </script> {% endif %} {% if route %} @@ -128,6 +130,7 @@ Les évènements à caractère politique, confessionnel ainsi que ceux relevant </div> <p><span id='proposition_form_submit'>{% trans 'Propose'%}</span></p> <script text='text/javascript'> + <!-- $(function(){ tinyMCE.init({ mode : "textareas", @@ -204,6 +207,7 @@ Les évènements à caractère politique, confessionnel ainsi que ceux relevant }); }); }); + // --> </script> </form> </div> diff --git a/templates/chimere/main_map.html b/templates/chimere/main_map.html index cd57df4..fec4589 100644 --- a/templates/chimere/main_map.html +++ b/templates/chimere/main_map.html @@ -11,10 +11,12 @@ <script src="{{ STATIC_URL }}saclay/js/jquery.form.js" type="text/javascript"></script> <script type='text/javascript' language='javascript'> + <!-- var default_error_message = "{% trans "Error while loading the page... Refresh the page. If the problem persist contact the webmaster." %}"; var edit_url = "{% url edit %}"; var edit_event_url = "{% url edit-event %}"; var edit_route_url = "{% url edit-route %}"; + // --> </script> <script src="{{ STATIC_URL }}saclay/js/interface.js" type="text/javascript"></script> {% endblock %} @@ -84,7 +86,9 @@ <div id='map-shadow'></div> <div id='default-message'></div> <script type="text/javascript"> + <!-- $("#main-map").show(); + // --> </script> {% map_menu %} {% map 'main-map' %} |